// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html


import gameData from "../gameData";

const {ccclass, property} = cc._decorator;

@ccclass
export default class gameTitleManager extends cc.Component {

    @property()
    curIndex : cc.Vec2 = cc.v2(0,0);

    @property()
    normal : boolean = true;

    start () {
        if(this.normal){
            this.node.getComponent(cc.Label).string = "" + gameData.titleDate[this.curIndex.x][this.curIndex.y];
        }else{
            this.node.getComponent(cc.Label).string = "" + gameData.titleDate[this.curIndex.x][this.curIndex.y];
        }
    }

    // update (dt) {}
}
